import request from "@/utils/request";


//查询所有缓存的名称
export function getNames(){
  return request({
    url:'/admin/cache/cacheNames',
    method:'get'
  })
}

export function getData(params){
  return request({
    url:'/admin/cache/cacheData',
    method:'get',
    params:params
  })
}

export function deleteKey(params){
  return request({
    url:'/admin/cache/deleteKey',
    method:'delete',
    params:params
  })
}

export function clearCache(){
  return request({
    url:'/admin/cache/clear',
    method:'delete',
  })
}
